import { registerMicroApps, start } from 'qiankun';
import Vue from 'vue'
import App from './App.vue'
import './styles/index.scss'
import router from './router/index.js'
console.log(process.env.BASE_URL, 'process.env.BASE_URL')
registerMicroApps([
  {
    name: 'vue', // app name registered
    entry: '//localhost:1234',
    container: '#app-main',
    activeRule: '#/qiankun/vue',
  },
  {
    name: 'react',
    entry: '//localhost:1235',
    container: '#app-main',
    activeRule: '#/qiankun/react',
  },
]);

start();
new Vue({
  router,
  render: h => h(App)
}).$mount('#app-main')
